<template>
  <section class="services">
    <div class="service">
      <div class="icon-title">
        <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="#f39c12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
          <circle cx="12" cy="12" r="10"></circle>
          <polygon points="10 8 16 12 10 16 10 8"></polygon>
        </svg>
        <h3>简历制作</h3>
      </div>
      <p>
        还在为制作简历发愁？根据信息制作属于你的简历！
      </p>
    </div>

    <div class="service">
      <div class="icon-title">
        <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="#f39c12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
          <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
          <polyline points="7 10 12 15 17 10" />
          <line x1="12" y1="15" x2="12" y2="3" />
        </svg>
        <h3>题库训练</h3>
      </div>
      <p>
        海量题目！行测题目与企业面试题目 快来试试吧！
      </p>
    </div>

    <div class="service">
      <div class="icon-title">
        <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="#f39c12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
          <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
          <line x1="3" y1="9" x2="21" y2="9"></line>
          <line x1="9" y1="21" x2="9" y2="9"></line>
        </svg>
        <h3>Ai模拟与总结</h3>
      </div>
      <p>还在纠结面试紧张？不知道面试问什么？快来这里，Ai帮你解决所有疑虑！</p>
    </div>

    <div class="service">
      <div class="icon-title">
        <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="#f39c12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
          <path d="M4 21v-7a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v7" />
          <rect x="2" y="10" width="20" height="11" rx="2" ry="2"></rect>
        </svg>
        <h3>就业帮助</h3>
      </div>
      <p>缺一个就业笔记本？不知道投递了哪些公司？快来这里哦，填写你的就业公司，修改你的就业进度！</p>
    </div>
  </section>
</template>


<style scoped>
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 80px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #fff8f0; /* 浅橙色背景 */
}

.service {
  display: block;
  position: relative;
  background: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.15); /* 橙色系阴影 */
  text-align: left;
  min-height: 320px;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid rgba(230, 126, 34, 0.1); /* 浅橙色边框 */
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.2);
  background: white; /* 悬停时变为纯白 */
}

.icon-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.icon {
  width: 36px;
  height: 36px;
  margin-right: 15px;
  flex-shrink: 0;
}

.service h3 {
  font-size: 1.9rem;
  color: #d35400; /* 深橙色标题 */
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.service p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #555;
  margin-top: 0;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 60px 40px;
  }
  
  .service {
    min-height: 280px;
    padding: 30px 25px;
  }
  
  .service h3 {
    font-size: 1.7rem;
  }
  
  .service p {
    font-size: 1.1rem;
  }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 20px;
  }
  
  .service {
    min-height: auto;
    padding: 25px 20px;
  }
  
  .icon-title {
    margin-bottom: 15px;
  }
  
  .service h3 {
    font-size: 1.5rem;
  }
  
  .service p {
    font-size: 1rem;
  }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
  .services {
    padding: 30px 15px;
  }
  
  .service {
    padding: 20px 15px;
  }
  
  .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
}
</style>
